package suites.queue.mock {
	import org.splink.library.queue.QEvent;
	import org.splink.library.queue.Qable;

	/**
	 * @author Max Kugland
	 */
	public class ErrorQable extends Qable {
		public function ErrorQable(id : String = "ErrorQable") { 
			super(id);
		}
		
		override protected function doStart() : void {
			var e : QEvent = new QEvent(this, QEvent.ERROR, id);
			e.errorMessage = "hello error!";
			distribute(e);
		}
		
		public function toString() : String {
			return "ImmediateQable: " + id;
		}

		override protected function doStop() : void {
		}

		override protected function doReset() : void {
		}
	}
}
